package com.term.domain.enums;

/**
 * Created by chenGang on 2017/1/9.
 */
public enum IdTypeEnums implements BaseEnum<IdTypeEnums,String> {
    ID("ID","身份证"),
    PASSPORT("PASSPORT","护照"),
    TW_TRAVEL_PERMIT("TW_TRAVEL_PERMIT","台胞证"),
    HKM_TRAVEL_PERMIT("HKM_TRAVEL_PERMIT","回乡证")
    ;

    private final String value;
    private final String displayName;
    private static java.util.Map<String, IdTypeEnums> valueMap = new java.util.HashMap<>();

    static {
        for ( IdTypeEnums e : IdTypeEnums.values() ) {
            valueMap.put( e.value, e );
        }
    }

    IdTypeEnums(String value, String displayName ) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public IdTypeEnums getEnum(String value ) {
        return valueMap.get( value );
    }

    @Override
    public java.util.Map<String, IdTypeEnums> getAllValueMap() {
        return valueMap;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDisplayName() {
        return displayName;
    }
}
